package com.kamistoat.meimeimall.meimeimallauthserver;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import springfox.documentation.oas.annotations.EnableOpenApi;

@EnableRedisHttpSession  // 开启session-redis
@EnableFeignClients      // 开启远程接口
@EnableDiscoveryClient   // 开启注册中心
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableDubbo
public class MeimeimallAuthServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(MeimeimallAuthServerApplication.class, args);
        Logger logger = LoggerFactory.getLogger(MeimeimallAuthServerApplication.class);
        logger.info("(♥◠‿◠)ﾉﾞ  梅梅Auth启动成功   ლ(´ڡ`ლ)ﾞ  \n");
        System.out.println(
                "/$$      /$$             /$$     /$$      /$$             /$$   \n" +
                        "| $$$    /$$$            |__/    | $$$    /$$$            |__/  \n" +
                        "| $$$$  /$$$$   /$$$$$$   /$$    | $$$$  /$$$$   /$$$$$$   /$$  \n" +
                        "| $$ $$/$$ $$  /$$__  $$ | $$    | $$ $$/$$ $$  /$$__  $$ | $$  \n" +
                        "| $$  $$$| $$ | $$$$$$$$ | $$    | $$  $$$| $$ | $$$$$$$$ | $$  \n" +
                        "| $$\\  $ | $$ | $$_____/ | $$    | $$\\  $ | $$ | $$_____/ | $$  \n" +
                        "| $$ \\/  | $$ |  $$$$$$$ | $$    | $$ \\/  | $$ |  $$$$$$$ | $$  \n" +
                        "|__/     |__/  \\_______/ |__/    |__/     |__/  \\_______/ |__/ ");
    }
}
